post_install() {
    \rm -rf /usr/share/gnome-background-properties
    \rm -rf /usr/share/backgrounds/xfce

    \mkdir -p /usr/share/gnome-background-properties/

    \ln -s /usr/share/backgrounds/swagarch/config/gnome-backgrounds.xml /usr/share/gnome-background-properties/gnome-backgrounds.xml
    \ln -s /usr/share/backgrounds/swagarch /usr/share/backgrounds/xfce
}

post_upgrade() {
    post_install $1
}

post_remove() {
    \rm -rf /usr/share/gnome-background-properties/
    \rm -rf /usr/share/backgrounds/xfce
}
